<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>

<jsp:directive.include file="/controleDeAcesso/autenticado.jsp"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PersonalBiblio</title>
</head>
<body>
<f:view>
<h1>Formulário de Alteração de Livro</h1>
	<h:form>
		<h:panelGrid border="1" columns="2">
			<h:outputText value="Id"></h:outputText>
			<h:inputText value="#{usuarioMB.aAlterar.id}" readonly="true"></h:inputText>
			<h:outputText value="Título"></h:outputText>
			<h:inputText value="#{usuarioMB.aAlterar.titulo}" required="true"></h:inputText>
			<h:outputText value="Autor"></h:outputText>
			<h:inputText value="#{usuarioMB.aAlterar.autor}" required="true"></h:inputText>
			<h:outputText value="Editora"></h:outputText>
			<h:inputText value="#{usuarioMB.aAlterar.editora}" required="true"></h:inputText>
			<h:outputText value="Ano (publicação)"></h:outputText>
			<h:inputText value="#{usuarioMB.aAlterar.anoPublicacao}" required="true"></h:inputText>
			<h:outputText value="Nota"></h:outputText>
			<h:inputText value="#{usuarioMB.aAlterar.nota}" required="true"></h:inputText>
				
		</h:panelGrid><h:commandButton value="Alterar Livro" action="#{usuarioMB.alterarLivro}"></h:commandButton>
	</h:form>
</f:view>
</body>
</html>